//
//  CataDetailModel.m
//  locatios
//
//  Created by 千锋 on 15/12/8.
//  Copyright (c) 2015年 LEE. All rights reserved.
//

#import "CataDetailModel.h"

@implementation CataDetailModel

+(JSONKeyMapper *)keyMapper
{
    JSONKeyMapper *mapper = [[JSONKeyMapper alloc]initWithJSONToModelBlock:^NSString *(NSString *keyName) {
        if ([keyName isEqualToString:@"id"]) {
            return @"ID";
        }
        else
            return  keyName;
    } modelToJSONBlock:^NSString *(NSString *keyName) {
        if ([keyName isEqualToString:@"ID"]) {
            return @"id";
        }
        else
            return keyName;
    }];
    return mapper;
}

@end
